// stores/modules/weather.ts
import { defineStore } from "pinia";

interface WeatherState {
  city: string;
  weather: any;
}

export const useWeatherStore = defineStore("weather", {
  state: (): WeatherState => ({
    city: "",
    weather: null,
  }),
  actions: {
    setCity(city: string) {
      this.city = city;
    },
    setWeather(weather: any) {
      this.weather = weather;
    },
  },
});
